<?
    class Principio_Comparator_CompaniesRoot implements PrincipioLab_IComparator
    {
        public function compare($obj1, $obj2)
        {
            if (($obj1->isPool()) xor ($obj2->isPool()))
                return ($obj1->isPool() ? self::IS_LT : self::IS_GT);

            return PrincipioLab_Comparator_IDAbleSingleton::getInstance()->compare($obj1, $obj2);
        }
    }
?>